#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "msgserver.h"

#include "loginform.h"
#include "ikeaenvform.h"
#include "homedevform.h"
#include "datamsform.h"
#include "usermsform.h"
#include "personinfoform.h"

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public slots:
    void slotUserLogin(QString id, QString pswd);

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

private slots:
    void on_actionUser_triggered();
    void on_actionEnv_triggered();
    void on_actionDev_triggered();
    void on_actionData_triggered();
    void on_actionInfo_triggered();

private:
    Ui::MainWindow *ui;

    MsgServer *m_msgServer;

    LoginForm *m_loginForm;
    IkeaEnvForm *m_envForm;
    HomeDevForm *m_devForm;
    DataMSForm *m_dataMSForm;
    UserMSForm *m_userMSForm;
    PersonInfoForm *m_personForm;
};

#endif // MAINWINDOW_H
